import { defineStore } from "pinia";

const userStore = defineStore("user", {
  state: () => ({
    account: "",
    activity_number: 0,
    end_time: "",
    goods_number: 0,
    head_img: "",
    invite_user: false,
    is_sign: false,
    is_unread_info: false,
    nickname: "",
    qr_code: "",
    qr_url: "",
    score: 0,
    system_info_number: 0,
    username: "",
    lib_name: "",
    is_view_sign_button: false,
    is_view_score_button: false,
    status_card: "",
    reading_task_total: "",
    reading_task: [] as Array<any>,

    inviteCode: "",
    userToken: { token: "", qr_code: "", nickname: "", head_img: "" },
    globalModal:{
      code: '',
      show:true,
    }
  }),
});

export { userStore };
